package com.codegeek.project.slope.service;

import com.codegeek.project.slope.domain.SlopeCamera;
import java.util.List;
import java.util.Map;

/**
 * 摄像头Service接口
 *
 * @author codegeek
 * @date 2020-02-17
 */
public interface ISlopeCameraService
{
    /**
     * 查询摄像头
     *
     * @param cameraId 摄像头ID
     * @return 摄像头
     */
    public SlopeCamera selectSlopeCameraById(Long cameraId);

    /**
     * 查询摄像头列表
     *
     * @param slopeCamera 摄像头
     * @return 摄像头集合
     */
    public List<SlopeCamera> selectSlopeCameraList(SlopeCamera slopeCamera);

    /**
     * 新增摄像头
     *
     * @param slopeCamera 摄像头
     * @return 结果
     */
    public int insertSlopeCamera(SlopeCamera slopeCamera);

    /**
     * 修改摄像头
     *
     * @param slopeCamera 摄像头
     * @return 结果
     */
    public int updateSlopeCamera(SlopeCamera slopeCamera);

    /**
     * 批量删除摄像头
     *
     * @param cameraIds 需要删除的摄像头ID
     * @return 结果
     */
    public int deleteSlopeCameraByIds(Long[] cameraIds);

    /**
     * 删除摄像头信息
     *
     * @param cameraId 摄像头ID
     * @return 结果
     */
    public int deleteSlopeCameraById(Long cameraId);

    /**
     * 检查新增摄像头名称是否重复
     * @param name
     * @return
     */
    List<Map<String,Object>> checkCameraName(String name);
}
